package cn.stylefeng.guns.utils.map;

import cn.stylefeng.guns.base.consts.ConstantsContext;
import cn.stylefeng.guns.utils.HttpClientUtil;

/**腾讯地图
 *
 */
public class TencentMapUtil {
    private static String api = "https://apis.map.qq.com";
    private static String key = "XMHBZ-QSIKW-JVERY-OWKBX-AMWGO-EZBN5";

    /**
     * 获取城市信息
     * @param location
     * @return
     */
    public static String Geocode(String location){
        String url = api+"/ws/geocoder/v1/?key="+key+"&output=json&get_poi=1&location="+location;
        String result = HttpClientUtil.doGet(url);
        return result;
    }
}
